-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build(aio): update to @angular/core@5.0.0-rc.5 #19702
Conversation
You can preview f9397f9 at https://pr19702-f9397f9.ngbuilds.io/. |
aio/package.json
Outdated
@@ -82,7 +82,7 @@ | |||
"core-js": "^2.4.1", | |||
"jasmine": "^2.6.0", | |||
"ng-pwa-tools": "^0.0.10", | |||
"rxjs": "^5.2.0", | |||
"rxjs": "5.5.0-beta.7", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could get to 5.5.0
now 😁
aio/tools/cli-patches/patch.js
Outdated
const fs = require('fs'); | ||
const sh = require('shelljs'); | ||
|
||
PATCH_LOCK = 'node_modules/@angular/cli/models/webpack-configs/.patched'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PATCH_LOCK
--> const PATCH_LOCK
(?)
extensions: ['.ts', '.js'], | ||
modules: ['node_modules', nodeModules], | ||
symlinks: !buildOptions.preserveSymlinks | ||
+ ,alias: require('rxjs/_esm5/path-mapping')(path.resolve(__dirname, '..', '..', '..', '..', '..', 'node_modules')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path.resolve(__dirname, '../../../../../node_modules')
woks too 😁
aio/tools/cli-patches/patch.js
Outdated
PATCH_LOCK = 'node_modules/@angular/cli/models/webpack-configs/.patched'; | ||
|
||
if (!fs.existsSync(PATCH_LOCK)) { | ||
sh.exec('patch -p0 -i tools/cli-patches/rxjs-esm-aliases.patch'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: You might want to use sh.set('-e')
, so that if an errors occurs the PATCH_LOCK
file isn't touched.
import { SharedModule } from 'app/shared/shared.module'; | ||
|
||
// These are the hardcoded inline svg sources to be used by the `<md-icon>` component | ||
// These are the hardcoded inline svg sources to be used by the `<mat-icon>` component | ||
export const svgIconProviders = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gkalpak would you have some extra cycles to help investigate why this is broken? I assume that it has to be related with our custom icon registry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I will look into it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I verified this is indeed related to the commit that defers loading the embdded components.
So, let's deal with this issue in another PR. (As discussed, deferring embedded components will be removed from this PR. This is still the plan, right?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the commit that caused this.
aio/package.json
Outdated
"tslib": "^1.7.1", | ||
"web-animations-js": "^2.2.5", | ||
"zone.js": "^0.8.16" | ||
}, | ||
"devDependencies": { | ||
"@angular/cli": "^1.3.0", | ||
"@angular/cli": "^1.5.0-rc.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could get to rc.1
now 😁
aio/src/app/app.module.ts
Outdated
// crashes with "missing first" operator when SideNav.mode is "over" | ||
import 'rxjs/add/operator/first'; | ||
import { ROUTES } from '@angular/router'; | ||
import { Platform } from '@angular/cdk/platform'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not import it from @angular/material
or @angular/material/platform
?
Or better yet, import PlatformModule
from @angular/material[/platform]
?
(Assuming Platform
is still necessary in the first place 😃)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that export was deprecated.
f9397f9
to
5e4944f
Compare
You can preview 5e4944f at https://pr19702-5e4944f.ngbuilds.io/. |
sounds good. let's defer the deferring
…On Thu, Oct 19, 2017 at 3:26 AM George Kalpakas ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In aio/src/app/app.module.ts
<#19702 (comment)>:
> import { SharedModule } from 'app/shared/shared.module';
-// These are the hardcoded inline svg sources to be used by the `<md-icon>` component
+// These are the hardcoded inline svg sources to be used by the `<mat-icon>` component
export const svgIconProviders = [
I verified this is indeed related to the commit that defers loading the
embdded components.
So, let's deal with this issue in another PR. (As discussed, deferring
embedded components will be removed from this PR. This is still the plan,
right?)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#19702 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AANM6Mjmkrn8_bbe1o0ot9ud6oZQJEUGks5styPegaJpZM4P4zqI>
.
|
5e4944f
to
f1c6ebe
Compare
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. |
f4cc647
to
64577d2
Compare
I think that we should land this and get the fixes for #19857 |
f55a6a8
to
9e1108e
Compare
You can preview f55a6a8 at https://pr19702-f55a6a8.ngbuilds.io/. |
You can preview 9e1108e at https://pr19702-9e1108e.ngbuilds.io/. |
These are changes that the mat-switcher missed and I had to make them by hand. PR Close #19702
-rw-r--r-- 1 iminar eng 14942 Oct 13 13:35 dist/0.b19e913fbdd6507d346b.chunk.js -rw-r--r-- 1 iminar eng 1535 Oct 13 13:35 dist/inline.f005f1bd6803b72f5961.bundle.js -rw-r--r-- 1 iminar eng 582527 Oct 13 13:35 dist/main.b9ef1abb785be8de15b8.bundle.js -rw-r--r-- 1 iminar eng 37402 Oct 13 13:35 dist/polyfills.f8409a9eb69060ac1aa6.bundle.js PR Close #19702
-rw-r--r-- 1 iminar eng 14942 Oct 13 14:30 dist/0.b19e913fbdd6507d346b.chunk.js -rw-r--r-- 1 iminar eng 1535 Oct 13 14:30 dist/inline.702d6ff5146ddc373f05.bundle.js -rw-r--r-- 1 iminar eng 588943 Oct 13 14:30 dist/main.64c96d55a10c56cfd6cd.bundle.js -rw-r--r-- 1 iminar eng 37402 Oct 13 14:30 dist/polyfills.f8409a9eb69060ac1aa6.bundle.js PR Close #19702
-rw-r--r-- 1 iminar eng 14942 Oct 13 14:52 dist/0.b19e913fbdd6507d346b.chunk.js -rw-r--r-- 1 iminar eng 1535 Oct 13 14:52 dist/inline.6ca24f1c3b848103b041.bundle.js -rw-r--r-- 1 iminar eng 567802 Oct 13 14:52 dist/main.c8183a2c0116782ca366.bundle.js -rw-r--r-- 1 iminar eng 37402 Oct 13 14:52 dist/polyfills.f8409a9eb69060ac1aa6.bundle.js PR Close #19702
-rw-r--r-- 1 iminar eng 14942 Oct 13 16:12 dist/0.b19e913fbdd6507d346b.chunk.js -rw-r--r-- 1 iminar eng 1535 Oct 13 16:12 dist/inline.eede8140efeab4c45b22.bundle.js -rw-r--r-- 1 iminar eng 559389 Oct 13 16:12 dist/main.20858f9aa7cf8741b6aa.bundle.js -rw-r--r-- 1 iminar eng 37402 Oct 13 16:12 dist/polyfills.f8409a9eb69060ac1aa6.bundle.js PR Close #19702
-rw-r--r-- 1 iminar eng 84219 Oct 18 09:13 dist/0.8ef208c27531d5c6af63.chunk.js -rw-r--r-- 1 iminar eng 14942 Oct 18 09:13 dist/4.c719ac5645940382cdce.chunk.js -rw-r--r-- 1 iminar eng 1560 Oct 18 09:13 dist/inline.adc367eb50c706f3fd04.bundle.js -rw-r--r-- 1 iminar eng 492354 Oct 18 09:13 dist/main.b9d9549455c74aff1480.bundle.js -rw-r--r-- 1 iminar eng 37402 Oct 18 09:13 dist/polyfills.f8409a9eb69060ac1aa6.bundle.js PR Close #19702
-rw-r--r-- 1 iminar eng 84219 Oct 18 21:05 dist/0.0f327734d18211139822.chunk.js -rw-r--r-- 1 iminar eng 14942 Oct 18 21:05 dist/4.c719ac5645940382cdce.chunk.js -rw-r--r-- 1 iminar eng 1560 Oct 18 21:05 dist/inline.887757679ff553e20b54.bundle.js -rw-r--r-- 1 iminar eng 492354 Oct 18 21:05 dist/main.5e5dc9ed980c9f5dc2bd.bundle.js -rw-r--r-- 1 iminar eng 37402 Oct 18 21:05 dist/polyfills.f8409a9eb69060ac1aa6.bundle.js PR Close #19702
-rw-r--r-- 1 iminar eng 84219 Oct 19 21:37 dist/0.0f327734d18211139822.chunk.js -rw-r--r-- 1 iminar eng 14942 Oct 19 21:37 dist/4.c719ac5645940382cdce.chunk.js -rw-r--r-- 1 iminar eng 1560 Oct 19 21:37 dist/inline.887757679ff553e20b54.bundle.js -rw-r--r-- 1 iminar eng 492354 Oct 19 21:37 dist/main.5e5dc9ed980c9f5dc2bd.bundle.js -rw-r--r-- 1 iminar eng 37402 Oct 19 21:37 dist/polyfills.f8409a9eb69060ac1aa6.bundle.js PR Close #19702
-rw-r--r-- 1 iminar eng 14942 Oct 20 22:16 dist/0.b19e913fbdd6507d346b.chunk.js -rw-r--r-- 1 iminar eng 1535 Oct 20 22:16 dist/inline.68ebcf831dc9c905804f.bundle.js -rw-r--r-- 1 iminar eng 541291 Oct 20 22:16 dist/main.5ec6fb5f95fc0433d822.bundle.js -rw-r--r-- 1 iminar eng 37402 Oct 20 22:16 dist/polyfills.f8409a9eb69060ac1aa6.bundle.js PR Close #19702
This will be fixed in CLI once angular/angular-cli#8130 lands. -rw-r--r-- 1 iminar eng 14942 Oct 20 22:23 dist/0.b19e913fbdd6507d346b.chunk.js -rw-r--r-- 1 iminar eng 1535 Oct 20 22:23 dist/inline.5d66b81ec9e01af9d28d.bundle.js -rw-r--r-- 1 iminar eng 528395 Oct 20 22:23 dist/main.e36bb99245ca52ae546f.bundle.js -rw-r--r-- 1 iminar eng 37205 Oct 20 22:23 dist/polyfills.0dfca732c5a075c110d0.bundle.js PR Close #19702
… are fixed (#19702) related issues: #19857 angular/devkit#231 PR Close #19702
The use of `System.import()` in test.ts was causing the webpack build to fail with a mysterious "Module build failed: Error: TypeScript compilation failed" error, when running `yarn test`. PR Close #19702
The latest builds have added ~2kB to the size of this file (500 bytes zipped). PR Close #19702
These issues appeared after upgrade of eslint jasmine plugin PR Close #19702
Later versions (before 0.8.19) had a size increase. PR Close #19702
-rw-r--r-- 1 iminar eng 14880 Oct 30 11:29 dist/0.b19e913fbdd6507d346b.chunk.js -rw-r--r-- 1 iminar eng 1533 Oct 30 11:29 dist/inline.25600c3b48de18b97581.bundle.js -rw-r--r-- 1 iminar eng 486476 Oct 30 11:29 dist/main.d1292a34401056535884.bundle.js -rw-r--r-- 1 iminar eng 37070 Oct 30 11:29 dist/polyfills.0dfca732c5a075c110d0.bundle.js PR Close #19702
-rw-r--r-- 1 iminar eng 14880 Nov 1 11:57 dist/0.b19e913fbdd6507d346b.chunk.js -rw-r--r-- 1 iminar eng 1533 Nov 1 11:57 dist/inline.3574d1d784c09c507dbd.bundle.js -rw-r--r-- 1 iminar eng 497812 Nov 1 11:57 dist/main.76bbb69df79eaefef54c.bundle.js -rw-r--r-- 1 iminar eng 37259 Nov 1 11:57 dist/polyfills.fdb71956ccd13330fb47.bundle.js PR Close #19702
This reverts commit f0d530b. cli rc.8 reintroduces the node polyfill which causes size regression, so I'm putting the patch back in. -rw-r--r-- 1 iminar eng 14880 Nov 1 12:11 dist/0.b19e913fbdd6507d346b.chunk.js -rw-r--r-- 1 iminar eng 1533 Nov 1 12:11 dist/inline.25600c3b48de18b97581.bundle.js -rw-r--r-- 1 iminar eng 486476 Nov 1 12:11 dist/main.d1292a34401056535884.bundle.js -rw-r--r-- 1 iminar eng 37070 Nov 1 12:11 dist/polyfills.0dfca732c5a075c110d0.bundle.js PR Close #19702
build fails - material upgrade required PR Close #19702
-rw-r--r-- 1 iminar eng 14880 Nov 1 12:25 dist/0.b19e913fbdd6507d346b.chunk.js -rw-r--r-- 1 iminar eng 1533 Nov 1 12:25 dist/inline.2826385ad3e299c6d1c1.bundle.js -rw-r--r-- 1 iminar eng 486476 Nov 1 12:25 dist/main.f0610805f4aad19da4be.bundle.js -rw-r--r-- 1 iminar eng 37070 Nov 1 12:25 dist/polyfills.0dfca732c5a075c110d0.bundle.js PR Close #19702
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
there is a size regression right now because the CLI is out of date:
-rw-r--r-- 1 iminar eng 14942 Oct 13 10:23 dist/0.b19e913fbdd6507d346b.chunk.js
-rw-r--r-- 1 iminar eng 1535 Oct 13 10:23 dist/inline.812a4af83ecce165c71c.bundle.js
-rw-r--r-- 1 iminar eng 643481 Oct 13 10:23 dist/main.74550bb35f9f5a57e78a.bundle.js
-rw-r--r-- 1 iminar eng 37402 Oct 13 10:23 dist/polyfills.965a9a5ad3e11b17f85e.bundle.js